<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>	</title>
<link href="__PUBLIC__/css/ydh.css" rel="stylesheet" id="lhgdialoglink">
<link rel="stylesheet" href="__PUBLIC__/css/c.css">
<script language="javascript" type="text/javascript" src="__PUBLIC__/js/WdatePicker.js"></script>
<script language="javascript" type="text/javascript" src="__PUBLIC__/js/jsAddress.js"></script>
<script language="javascript" type="text/javascript">
	function checkAddress(){
		var address = document.getElementById("address").value;
		var zip_code = document.getElementById("zip_code").value;
		var phone = document.getElementById("phone").value;
		if(address=="" || address==null){
			alert("详细地址不能为空！");
			return false;
		}if(zip_code=="" || zip_code==null){
			alert("邮编不能为空！");
			return false;
		}if(phone=="" || phone==null){
			alert("电话不能为空！");
			return false;
		}
	}
</script>


	
	
	
	
	
</head>
<body style="background-color:white;">






<form action="{:U('aaddress')}" method="post" onsubmit="return checkAddress()">
<div class="alert-content">
    <div class="addressManage pt30 pb30">
        <div class="address-edit-con control-box" style="">
		
			 <div class="control-group">
                <div class="control-label"><a style="color:red;">*</a>&nbsp;收货地址</div>
                <div class="control-input selCity">
					<select id="Select1" name="local_province" style="width:106px;margin-right:10px;"></select>
					<select id="Select2" name="local_city" style="width:106px;margin-right:10px;"></select>
					<select id="Select3" name="local_area" style="width:106px;"></select>
					<script type="text/javascript">
						addressInit('Select1', 'Select2', 'Select3');
					</script>
				</div>
            </div>
			
            <div class="control-group">
                <div class="control-label"><a style="color:red;">*</a>&nbsp;详细地址</div>
                <div class="control-input">
                    <input type="text" class="ui-input" id="address" name="address" autocomplete="off">
                </div>
            </div>
			
            <div class="control-group">
                <div class="control-label"><a style="color:red;">*</a>邮编</div>
                <div class="control-input">
                    <input type="text" class="ui-input" id="zip_code" name="zip_code" autocomplete="off">
                </div>
            </div>
			
            <div class="control-group control-group-line">
                <div class="control-label"><a style="color:red;">*</a>&nbsp;电话</div>
                <div class="control-input">
                    <input type="text" class="ui-input" id="phone" name="phone" autocomplete="off">
                </div>
                <div class="control-label control-label-2">传真</div>
                <div class="control-input">
                    <input type="text" class="ui-input" id="fax" name="fax" autocomplete="off">
                </div>
            </div>
			
			<div class="control-group" style="text-align:center;">
				<div class="control-label"></div>
				<div class="control-input">
					<input type="submit" value="保存" id="" class="ui_state_highlight">
				</div>
			</div>

            <input type="hidden" name="addressId" value="0" autocomplete="off">
        </div>
    </div>
</div>
</form>
	



</body></html>
